<?php
function get_event($offset)
{
	global $bdd;

	$offset =(int) $offset;

	$reponse = $bdd->prepare('SELECT* FROM event WHERE id=:offset');
	$reponse->bindParam(':offset',$offset, PDO::PARAM_INT);
	$reponse->execute();

	$event = $reponse->fetchAll();

	return $event;
}
?>


